package com.sgb.jicai.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class FactoryCentralizedListEntity<T> implements Serializable {
    @SerializedName("current")
    private int current;
    @SerializedName(value = "total", alternate = {"totalRow", "totalElements", "recordCount", "totalPage"})
    private int total;
    @SerializedName(value = "pages", alternate = {"pageSize", "pageCount"})
    private int pages;
    @SerializedName("size")
    private int size;
    @SerializedName(value = "records", alternate = {"products", "list", "content"})
    private List<T> list;

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
